package com.scholarship.modules.login.entity;

import lombok.*;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
public class Role {
    private Integer id;
    private String userId;
    private Integer role;

    public Role(String userId, Integer role) {
        this.userId = userId;
        this.role = role;
    }

    @Override
    public String toString() {
        return "Role{" +
                "id=" + id +
                ", userId='" + userId + '\'' +
                ", role=" + role +
                '}';
    }
}
